package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.ALL_FORM_LIST;

import androidx.annotation.NonNull;

import com.uduew.sjd.bean.MotheryBean;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class AllFormListApi implements IRequestApi, IRequestType {

    private ReqAllFormListBean overripe;

    public AllFormListApi(String theologist) {
        overripe = new ReqAllFormListBean(theologist);
    }

    @NonNull
    @Override
    public String getApi() {
        return ALL_FORM_LIST;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqAllFormListBean {

        private String theologist;

        public ReqAllFormListBean(String theologist) {
            this.theologist = theologist;
        }
    }

    public static final class AllFormListBean {
        private String armchair;
        private ArrayList<MotheryBean> mothery;

        public String getArmchair() {
            return armchair;
        }

        public ArrayList<MotheryBean> getMothery() {
            return mothery;
        }
    }

}


